// 用户管理
import request from '@/api/axios'

// 分页获取C端用户列表
export function getUserList(data) {
    return request({
        url: '/olda-shunshun-expressage-system-service/basSystemUser/pagedQuery',
        method: 'post',
        data
    })
}

// 分页获取代理商列表
export function getAgentList(data) {
    return request({
        url: '/olda-shunshun-expressage-system-service/basSystemUser/pageQueryAgentUser',
        method: 'post',
        data
    })
}

// 开通代理
export function postOpenAgentData(data) {
    return request({
        url: '/olda-shunshun-expressage-system-service/basSystemUser/openAgent',
        method: 'post',
        data
    })
}

// 试用代理转正
export function postTestAgentToFormalData(data) {
    return request({
        url: '/olda-shunshun-expressage-system-service/basSystemUser/agentprobationaryConversion',
        method: 'post',
        data
    })
}

// 更新代理信息
export function updateAgenData(data) {
    return request({
        url: '/olda-shunshun-expressage-system-service/basSystemUser/updateAgentUserName',
        method: 'post',
        data
    })
}
